//
//  JWAlarmClockModel.h
//  SiqiCalendar
//
//  Created by sunjiawen on 2018/4/2.
//  Copyright © 2018年 sjw. All rights reserved.
//

#import <Realm/Realm.h>
#import <UIKit/UIKit.h>

static NSString *const kAlarmID              = @"alarmID";
static NSString *const kAlarmDate            = @"alarmDate";
static NSString *const kAlarmCalendarId      = @"calendarId";
static NSString *const kRepeat               = @"repeat";
static NSString *const kToggle               = @"toggle";
static NSString *const kCreateDate           = @"createDate";
static NSString *const kRepeatTurnName       = @"repeatTurnName";
static NSString *const kAlarmSoundFileName   = @"alarmSoundFileName";

@interface JWAlarmClockModel : RLMObject
/** 主键 */
@property NSString *alarmID;
/** 闹钟时间 */
@property NSDate *alarmDate;
/** 对应日历ID */
@property NSString *calendarId;
/** 是否重复 */
@property bool repeat;
/** 当前开关状态 */
@property bool toggle;
/** 创建时间 */
@property NSDate *createDate;
/** 在哪一个班组重复 */
@property NSString *repeatTurnName;
/** 闹钟提示音文件名 */
@property NSString *alarmSoundFileName;


- (void)updateAlarmDate:(NSDate *)alarmDate;
- (void)updateCalendarId:(NSString *)calendarId;
- (void)updateRepeat:(bool)repeat;
- (void)updateToggle:(bool)toggle;
- (void)updateCreateDate:(NSDate *)createDate;
- (void)updateRepeatTurnName:(NSString *)repeatTurnName;
- (void)updateAlarmSoundFileName:(NSString *)alarmSoundFileName;
@end
